package com.roncoo.example.controller.https;

import javax.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

  @GetMapping("get")
  public String ga(HttpServletRequest request) {
    String requestURL = request.getRequestURI().toString();
    String protocol = requestURL.split("://")[0];
    return "get --->" + protocol;
  }

}
